import request from '@/utils/request'

// 查询绩效信息列表
export function listPerformance(query) {
  return request({
    url: '/course/Performance/list',
    method: 'get',
    params: query
  })
}


// 查询绩效信息详细
export function getPerformance(id) {
  return request({
    url: '/course/Performance/view/' + id,
    method: 'get'
  })
}

// 新增绩效信息
export function addPerformance(data) {
  return request({
    url: '/course/Performance/add',
    method: 'post',
    data: data
  })
}

// 修改绩效信息
export function updatePerformance(data) {
  return request({
    url: '/course/Performance/update',
    method: 'put',
    data: data
  })
}

// 删除绩效信息
export function delPerformance(id) {
  return request({
    url: '/course/Performance/delete/' + id,
    method: 'delete'
  })
}
